﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/common/head.jsp" %>

<div class="right">
    <div class="location">
        <strong>当前位置:</strong>
        <span>用户管理页面 >> 用户添加页面</span>
    </div>
    <div class="supplierAdd">
        <form id="userForm" name="userForm" method="post" enctype="multipart/form-data"
              action="${pageContext.request.contextPath }/user/add">
            <div>
                <label for="realName">真实姓名：</label>
                <input type="text" name="userName" id="realName" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="account">用户编码：</label>
                <input type="text" name="userCode" id="account" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="password">密码：</label>
                <input type="password" name="userPassword" id="password" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="rpassword">密码：</label>
                <input type="password" name="rpassword" id="rpassword" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="birthday">出生日期：</label>
                <input type="text" Class="Wdate" id="birthday" name="birthday"
                       readonly="readonly" onclick="WdatePicker();">
                <font color="red"></font>
            </div>
            <div>
                <label for="phone">电话：</label>
                <input type="text" name="phone" id="phone" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="roleList">角色：</label>
                <select name="userRole" id="roleList">
                    <option value="1">系统管理员</option>
                    <option value="2">经理</option>
                    <option value="3">普通员工</option>
                </select>
                <font color="red"></font>
            </div>
            <div>
                <label for="gender">性别：</label>
                <select name="gender" id="gender">
                    <option value="1">男</option>
                    <option value="2">女</option>
                </select>
                <font color="red"></font>
            </div>
            <div>
                <label for="address">地址：</label>
                <input type="text" name="address" id="address" value="">
                <font color="red"></font>
            </div>
            <div>
                <label for="idPic">证件：</label>
                <input type="file" name="idPic" id="idPic" value="">
                <font color="red"></font>
            </div>
            <div class="supplierAddBtn">
                <input type="submit" id="add" value="保存">
                <input type="button" id="back" name="back" value="返回">
            </div>
        </form>
    </div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/sysUser/add.js"></script>
